package com.astoolkit.workflow.common
{
	import com.astoolkit.workflow.BaseTask;
	import com.astoolkit.workflow.IWorkflowTask;
	
	public class Break extends BaseTask
	{
		public var target : IWorkflowTask;
		
		override public function begin():void
		{
			super.begin();
			if( !target )
				target = _parent;
			if( !target )
			{
				fail("BreakTask: No target task to abort");
				return;
			}
			//TODO: implement interruption in tasks
			//target.abort()
		}
	}
}